package com.itzzy.dice.constant;

/**
 * @author zzy
 * @version 1.0
 * @date 2021/3/23 15:05
 */
public interface RequestCode {

    /**
     * 设置包头长度： code(5) + |(1) = 6
     *  如： 10002|1|111|999
     */
    int PACKAGE_LENGTH = 6;


    int USER_LOGIN = 10001;

    int CREATE_ROOM = 10002;

    int JOIN_ROOM = 10003;

    int PREPARE_GAME = 10004;

    int START_GAME = 10006;

    /**
     * 踢出房间
     */
    int KICK_ASS = 10007;

    int DICE_CHECK = 20001;

    int OPEN_DICE = 20002;

    int SEND_MSG = 30001;
}
